import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '企业名称',
    align: "center",
    dataIndex: 'companyName'
  },
  {
    title: '企业编码',
    align: "center",
    dataIndex: 'orgCode'
  },
  {
    title: '企业级次',
    align: "center",
    dataIndex: 'companyLevel'
  },
  {
    title: '被投资企业名称',
    align: "center",
    dataIndex: 'targetCompany'
  },
  {
    title: '被投资企业性质',
    align: "center",
    dataIndex: 'targetCompanyProperty'
  },
  {
    title: '被投资企业所在地区',
    align: "center",
    dataIndex: 'targetCompanyDistrict'
  },
  {
    title: '初始投资时间',
    align: "center",
    dataIndex: 'initialInvestmentTime'
  },
  {
    title: '初始投资成本',
    align: "center",
    dataIndex: 'initialInvestmentCost'
  },
  {
    title: '累计对外投资账面金额原值',
    align: "center",
    dataIndex: 'cumulativeOriginalValue'
  },
  {
    title: '累计对外投资账面金额净值',
    align: "center",
    dataIndex: 'cumulativeNetValue'
  },
  {
    title: '股权比例（%）',
    align: "center",
    dataIndex: 'equityRatio'
  },
  {
    title: '累计投资收益应收',
    align: "center",
    dataIndex: 'cumulativeIncomeReceivable'
  },
  {
    title: '累计投资收益实收',
    align: "center",
    dataIndex: 'cumulativeIncomeReceived'
  },
  {
    title: '本年实际收到投资收益',
    align: "center",
    dataIndex: 'currentYearIncomeReceived'
  },
  {
    title: '核算方法',
    align: "center",
    dataIndex: 'accountingMethod'
  },
  {
    title: '被投资企业的经营状况',
    align: "center",
    dataIndex: 'targetCompanyOperatingStatus'
  },
  {
    title: '最近三年分红情况',
    align: "center",
    dataIndex: 'dividendSituation'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
];

// 高级查询数据
export const superQuerySchema = {
  companyName: {title: '企业名称',order: 0,view: 'popup', type: 'string',code: 'test_building', orgFields: 'depart_name', destFields: 'companyName', popupMulti: false,},
  orgCode: {title: '企业编码',order: 1,view: 'text', type: 'string',},
  companyLevel: {title: '企业级次',order: 2,view: 'text', type: 'string',},
  targetCompany: {title: '被投资企业名称',order: 3,view: 'text', type: 'string',},
  targetCompanyProperty: {title: '被投资企业性质',order: 4,view: 'list', type: 'string',dictCode: 'company_nature',},
  targetCompanyDistrict: {title: '被投资企业所在地区',order: 5,view: 'text', type: 'string',},
  initialInvestmentTime: {title: '初始投资时间',order: 6,view: 'text', type: 'string',},
  initialInvestmentCost: {title: '初始投资成本',order: 7,view: 'number', type: 'number',},
  cumulativeOriginalValue: {title: '累计对外投资账面金额原值',order: 8,view: 'number', type: 'number',},
  cumulativeNetValue: {title: '累计对外投资账面金额净值',order: 9,view: 'number', type: 'number',},
  equityRatio: {title: '股权比例（%）',order: 10,view: 'text', type: 'string',},
  cumulativeIncomeReceivable: {title: '累计投资收益应收',order: 11,view: 'number', type: 'number',},
  cumulativeIncomeReceived: {title: '累计投资收益实收',order: 12,view: 'number', type: 'number',},
  currentYearIncomeReceived: {title: '本年实际收到投资收益',order: 13,view: 'number', type: 'number',},
  accountingMethod: {title: '核算方法',order: 14,view: 'text', type: 'string',},
  targetCompanyOperatingStatus: {title: '被投资企业的经营状况',order: 15,view: 'text', type: 'string',},
  dividendSituation: {title: '最近三年分红情况',order: 16,view: 'text', type: 'string',},
  remark: {title: '备注',order: 17,view: 'text', type: 'string',},
};
